From: Glenn Morris Date: Wed, 8 Aug 2007 08:00:43 +0000 (+0000) Subject: (help-make-xrefs): Search for symbol constituents, rather than just `-'. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~17467 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=c04c9be602334a4cd3327f384bd4a2aa0942ecb2;p=emacs.git (help-make-xrefs): Search for symbol constituents, rather than just `-'. --- diff --git a/lisp/help-mode.el b/lisp/help-mode.el index 28ac693f870..fd17a93a29f 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el @@ -461,9 +461,9 @@ that." ;; An obvious case of a key substitution: (save-excursion (while (re-search-forward - ;; Assume command name is only word characters - ;; and dashes to get things like `use M-x foo.'. - "\\bar'. + "\\= (current-column) col) - (looking-at "\\(\\sw\\|-\\)+$")) + (looking-at "\\(\\sw\\|\\s_\\)+$")) (let ((sym (intern-soft (match-string 0)))) (if (fboundp sym) (help-xref-button 0 'help-function sym))))